package ej1.Main;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class CiclicMutationPath extends MutationPath {

	public boolean isLongerThan(MutationPath anotherMutationPath) {
		
		return true;
	}

	protected boolean isShorterThanMutationPath(MutationPath anotherMutationPath) {
		
		return false;
	}

	protected int length() {
		
		return -1;
	}
	
	public MutationPath clone(){
		return new CiclicMutationPath();
	}
	
	public void saveAs(String aFilePath) {
		
		FileWriter writer;
		try {
			writer = new FileWriter(aFilePath);
			BufferedWriter bufferedWriter = new BufferedWriter(writer);
			
			bufferedWriter.append("-1");
			
			bufferedWriter.close();
			writer.close();
			
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}	
		
	}
	
}
